package com.swt.gap.common.file.impl;

import com.swt.gap.common.file.File;
import com.swt.gap.common.file.FormFileData;
import com.swt.gap.util.excel.ExcelData;

/**
 * 请填写说明
 *
 * @author sx
 * @date 2020/7/29 11:17
 */
public class ExcelFile implements File {
    @Override
    public FormFileData readFormFile(String filePath) {
        ExcelData data = com.swt.gap.util.excel.ExcelUtil.getReader().read(filePath);
        return new FormFileData(data.getHeader(), data.getFieldsMap());
    }
}
